<@pp.dropOutputFile />
<#list dalgen.doMappers as doMapper>
<@pp.changeOutputFile name = "/main/java/${doMapper.classPath}/${doMapper.javaName}Mapper.java" />

<#list doMapper.importLists as import>
import ${import};
</#list>
import com.alicp.jetcache.Cache;
import com.tollge.common.annotation.Type;
import com.tollge.common.annotation.data.ChangeType;
import com.tollge.common.annotation.mark.Biz;
import com.tollge.common.annotation.mark.Path;
import com.tollge.common.annotation.valid.NotNull;
import com.tollge.common.util.CacheUtil;
import com.tollge.common.util.Const;
import com.tollge.common.verticle.BizVerticle;
import io.vertx.core.eventbus.Message;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import lombok.extern.slf4j.Slf4j;

import static com.tollge.common.simple.Handle.assertSuccess;

@Slf4j
@Biz("biz://${doMapper.javaName!}")
public class ${doMapper.javaName!}Mapper extends BizVerticle {

/**
* 查询一个
*/
@Path("/one")
public void one(Message<JsonObject> msg) {
    one("${doMapper.javaName!}Base.one", msg, null);
}

/**
* 查询list
*/
@Path("/list")
public void list(Message<JsonObject> msg) {
    list("${doMapper.javaName!}Base.list", msg, null);
}

/**
* 新增
*/
@Path("/add")
public void add(Message<JsonObject> msg) {
    operate("${doMapper.javaName!}Base.add", msg, null);
}

/**
* 修改
*/
@Path("/modify")
public void modify(Message<JsonObject> msg) {
    operate("${doMapper.javaName!}Base.modify", msg, null);
}

/**
* 删除
*/
@Path("/delete")
public void delete(Message<JsonObject> msg) {
    operate("${doMapper.javaName!}Base.delete", msg, null);
}
}
</#list>